<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
		<script type="text/javascript" src="../js/angular.min.js"></script>

	</head>

	<body>
		<div ng-app="myApp" ng-controller="myCtrl">
			<table border="1">
				<tr>
					<th>序号</th>
					<th>名字</th>
					<th>价格</th>
				</tr>
				<tr ng-repeat="product in products">
					<th>{{$index}}</th>
					<th>{{product.name}}</th>
					<th>{{product.price}}</th>
				</tr>
			</table>
		</div>
	</body>
	<script type="text/javascript">
		var myApp = angular.module("myApp", []);
		myApp.controller("myCtrl", function($scope) {
			$scope.products = [{
				name : "电视",
				price : 1000
			}, {
				name : "手机",
				price : 100
			}]
		})
	</script>

</html>